const app = getApp();
Page({
    data: {
        location:{},
        markers: [],
    },
    onShow: function () {
        let temp=[{
            iconPath: "../../images/tip.png",
            id: 0,
            latitude: 0,    //纬度，北纬
            longitude: 0,   //经度，东经
            width: 30,
            height: 30
        }];
        this.setData({location:app.globalData.location});
        temp[0].latitude = this.data.location.latitude;     //获取数据库中读出的纬度
        temp[0].longitude = this.data.location.longitude;   //获取数据库中读出的经度
        this.setData({markers:temp});
    }
})